Show Different Sidebar For Each Post And Page WordPress

How to Show Different Sidebar for Each Post and Page in WordPress

show different sidebar for each post and post

Just a while ago, one of our readers asked if it’s possible to show different sidebar for each post and page in WordPress. Well, you would be happy to know that today, you’re going to learn it.

By default, every WordPress theme controls its structure by showing a fixed sidebar which can show only one type of the content you add once.

It means if you add the widgets to the sidebar, it keeps showing on all the pages and posts the same. You can’t decide to show different sidebar for each post and post.

But with this article, you will learn to accomplish this within a few minutes.

Why Would You Need to Display Different Sidebars

Many people complain that whenever they add something to the sidebar of their theme, it remains same on all the pages and the posts.

They want to display different ads or email newsletter box on different pages. Well, it can be possible if you add the custom sidebars.

If you’re running an online course website, it can be the best thing for you. And for your business marketing, you can add different widgets on the pages and different for the posts.

Create the Custom Sidebar to Show Different Sidebar for Each Post and Page

You have to install and activate Easy Custom Sliders plugin. I hope you know how to install a WordPress plugin. There are different ways to installs WordPress plugins.

Then you have to follow these steps.

Step 1:- Go to Appearance>>Theme Sidebars and you will see the exact page as you see for the default WordPress menu.

add different sidebar

Fill the name of the sidebar and click on the Create Sidebar button.

Step 2:- A new sidebar will get created. Now you have to choose the category of the sidebar from the drop-down menu.

If you want to replace the page sidebar then select the option. Depending on your theme current sidebars, you will have the options.

different sidebar for each post

You can also fill the description of your custom sidebar.

Step 3:- If you want, you can add the posts, pages or anything from the left side menu. Just like you do while adding topics to WordPress navigation menu.

Save the sidebar and you’re ready to add the widgets.

Step 4:- Go to Appearance>>Widgets and you will see the name of the custom sidebar you have just created. You can add your popular posts, any ad or even an affiliate link.

add different sidebar for each page

Depending on your choice, you can select any and save it.

Now you can check your custom sidebar at the position you have selected before.

I Hope it’s Easy to Show Different Sidebar for Each Post and Page

It’s always a good idea to interact more people. If any of your visitors are reading a post and he/she sees an affiliate link of any web hosting.

Maybe he/she decides to read a few other posts. Well, your custom sidebar will work in such situation. Every time some visits a new page, he/she will see your custom sidebar.

I have explained all the step in this tutorial. Can you now show different sidebar for each post and page on your WordPress website?

If you still face any problem, feel free to ask. You can also connect with us on Twitter, LinkedIn, and Facebook.

by Ravi Chahar

A WordPress Professional and the LinkedIn Influencer. A coder by passion and a blogger by choice. WordPress theme development is his forte. He is your WordPress guy who will teach you how to solve WordPress errors, WordPress security issues, design issues and what not.


Get Free Updates Into Your Inbox

Learn Everything Just Like I Did

SUBSCRIBE



4 comments

  1. Hi Ravi,

    This is awesome! Thank you for sharing this and for showing us how it is to show a different sidebar for each post or page.

    I love that we can do so many things with a WordPress site. ?

    Passsing this one along.

    Hope you’re well. ?

    Cori

  2. Hi Ravi, I haven’t thought of doing this but I think it would be great for the homepage vs other pages of the blog. I could see me doing it for the about me page or services page. That would be quite cool.

    I do try to keep my sidebar pretty clean but having one or two things may work on specific pages.

    Thanks for sharing on how to do this Ravi ?

  3. Hey Ravi!

    This is very helpful to know – as a blogger.

    Sometimes you do want to show something different to someone who is reading on a especific topic. I have seen many bloggers use this strategy.

    I’ve done something like this before and used that one plugin you are mentining here. I recommend it!

    Thanks for sharing!

    Cheers! ?

  4. Another cool tutorial Ravi. This is really a good one and I found the similar feature when worked with Clipper coupon theme. They have this features inbuilt, but besides that I have not seen any theme providing such feature.

    Many thanks for your hard work. ?

Leave a Reply

Your email address will not be published. Required fields are marked *